import API from "@/utils/request";

/**
 *
 * @param {Object} data 参数
 */

/**
 * 装修
 */
// 选择链接
export const GETLISTLink = data => {
  return API("user/shopgoodstype/getlist", data);
};
export const GOODSLink = data => {
  return API("user/shop/linkgoods", data);
};
export const GETLISTLinkJump = data => {
  return API("user/jump/getlist", data);
};
export const MARKETJump = (url, data) => {
  return API(url, data);
};

// 四级联动
export const FOURLEVELLINKAGE = data => {
  return API("sp/v1.Distribution/fourLevelLinkage", data);
};
// 三级联动
export const THREELEVELLINKAGE = data => {
  return API("sp/v1.Distribution/threeLevelLinkage", data);
};
// 设置地址
export const SETDISTRIBUTIONPLAN = data => {
  return API("sp/v1.Templete/setDistributionPlan", data);
};
// 删除地址
export const DELDISTRIBUTIONPLAN = data => {
  return API("sp/v1.Distribution/delDistributionPlan", data);
};
// export const SETDISTRIBUTIONPLAN = data => {
//   return API('spwx/v1.city/obj', data)
// }

// 规格
export const ADDGOODSATTR = data => {
  return API("sp/v1.Shop/addGoodsAttr", data);
};
export const GOODSATTRLIST = data => {
  return API("sp/v1.Shop/goodsAttrList", data);
};
export const DELGOODSATTR = data => {
  return API("sp/v1.Shop/delGoodsAttr", data);
};

// 营销
export const MARKETLIST = data => {
  return API("sp/v1.Market/marketList", data);
};
// 拼团列表
export const ASSEMBLELIST = data => {
  return API("sp/v1.Assemble/assembleList", data);
};
export const aGOODSLIST = data => {
  return API("sp/v1.Assemble/goodsList", data);
};
export const DELGOODS = data => {
  return API("sp/v1.Assemble/delGoods", data);
};
// 限时列表
export const LIMITCODE = data => {
  return API("sp/v1.Assemble/limitList", data);
};

// 文章
export const ARTICLELIST = data => {
  return API("sp/v1.Store/article_list", data);
};

// 砍价
export const BARGAIN_LIST = data => {
  return API("bargain/v1.bargain/bargain_list", data);
};
